package com.kanshu.basictest.util;

import org.apache.commons.net.telnet.TelnetClient;

import java.io.IOException;

public final class TelnetUtil {

    public static final TelnetClient mTelnetClient = new TelnetClient();

    public static void connect(String ip, String port) {
        try {
            mTelnetClient.connect(ip, Integer.parseInt(port));

        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
